import Mock from 'mockjs';


export default {
    className: "media.model.AuditRecord",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                // "queryResult|38": [{
                //     "keyID|1000-9999": 1000,
                //     "assetsNo": /^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$/,
                //     "assetsName": Mock.mock('@ctitle'),//@title为英文版
                //     "source": Mock.mock('@ctitle'),
                //     "assetsType": Mock.mock('@ctitle'),
                //     "moreInfo": Mock.mock('@ctitle'),
                //     "auditStatus": Mock.mock('@ctitle'),
                //     "updateTime": Mock.mock('@now'),
                //     "auditTimeLast": Mock.mock('@now'),
                //     "auditor": Mock.mock('@ctitle'),
                //     "version": 1
                // }],
                "queryResult|5": [{"keyID":"1001","auditor":"李兰","assetCode":"163618","assetName":"白色严冬","itemTitle":"","duration":"","hdFlag":"HD","type":"Movie","source":"芒果","firstCategory":"电影","secondCategory":"2012,欧美,欧美大片","year":"2012","area":"欧美","language":"英语","director":"彼特·纳斯","actor":"鲁伯特·格林特、大卫·克劳斯","assetScriptwriter":"","assetDescription":"影片讲述了因飞机坠落而被困于白色荒漠之中的两位英军士兵、三位德军士兵之间从敌人到朋友的故事。","score":"8.3","licenseNo":"","itemNum":"1","auditStatus":"审核通过(31)","createTime":"2018-06-21 13:22:18.0","auditTimeLast":"2018-06-29 14:16:26.0","cpId":"","authorizer":"","crtDesc":"","crtArea":"","crtStartTime":"","crtEndTime":"","copyrightBegin":"","copyrightEnd":"","copyrightType":"","copyrightRemark":""}]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
              "keyID|1000-9999": 1000,
              "name": Mock.mock('@ctitle'), //@title为英文版
              "identifier": /^[A-Z][a-z][a-z][a-z][a-z][A-Z][a-z][a-z][a-z][a-z]$/, //标识符
              "byName": Mock.mock('@ctitle'),
              "profession": Mock.mock('@ctitle'),
              "sex": Mock.mock('@now'),
              "nationality": Mock.mock('@ctitle'),
              "status": Mock.mock('@now'),
              "version": 1
            }
        });
    },
};
